home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir43 / med300.zip / MEMOEDIT.MOD < prev    next >
Text File  |  1994-02-22  |  6KB  |  92 lines

  1.  
  2. !▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  3. !█                                                                       █
  4. !█ MEMOEDIT.MOD                                                          █
  5. !█ Module definitions for MEMOEDIT                                       █
  6. !█                                                                       █
  7. !█ Revision  : 1                                                         █
  8. !█                                                                       █
  9. !█ Copyright : Bobcat Systems (c) 1994                                   █
  10. !█ Author    : Robert J. Pupazzoni, Bobcat Systems                       █
  11. !█                                                                       █
  12. !█ Compiler  : Clarion Database Developer 3.0, Batch 3006                █
  13. !█                                                                       █
  14. !█ REVISION HISTORY                                                      █
  15. !█   1 Created                                                           █
  16. !█                                                                       █
  17. !▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  18.  
  19.     MODULE('MEBLOCK')                            ! Block operations:
  20.       ME_NormBlock()                             !   Normalize block
  21.       ME_MarkOn()                                !   Turn block marking on
  22.       ME_MarkOff()                               !   Turn block marking off
  23.       ME_Copy2Clip()                             !   Copy block to clipboard
  24.       ME_Cut2Clip()                              !   Cut block to clipboard
  25.       ME_PasteClip()                             !   Paste clipboard
  26.     .
  27.     MODULE('MECORE')                             ! Core editing operations:
  28.       ME_GetChar( USHORT ),BYTE                  !   Get character from buffer
  29.       ME_PutChar( USHORT, BYTE )                 !   Put character to buffer
  30.       ME_GetBlock( *STRING, USHORT, USHORT )     !   Get block from buffer
  31.       ME_InsTxt( USHORT, USHORT, STRING )        !   Insert text into buffer
  32.       ME_DelTxt( USHORT, USHORT )                !   Delete text from buffer
  33.     .
  34.     MODULE('MEDELETE')                           ! Deletion operations:
  35.       ME_DelChar()                               !   Delete character
  36.       ME_DelEOL()                                !   Delete to end-of line
  37.       ME_DelLine()                               !   Delete entire line
  38.     .
  39.     MODULE('MEDONE')                             ! Clean-up and termination:
  40.       ME_Done()                                  !   Free mem / restore context
  41.     .
  42.     MODULE('MEEDIT')                             ! Main edit loop:
  43.       ME_BufrFull(), BYTE                        !   Check for buffer full
  44.       ME_Edit()                                  !   Edit current document
  45.     .
  46.     MODULE('MEFILE')                             ! File operations:
  47.       ME_PickFile( STRING ),STRING               !   File/directory picklist
  48.       ME_PasteFile()                             !   Paste file
  49.       ME_Copy2File()                             !   Copy marked block to file
  50.       ME_EditFile( STRING, <USHORT> )            !   Edit file
  51.     .
  52.     MODULE('MEINIT')                             ! Initialization:
  53.       ME_InitMemo( *STRING[] )                   !   Allocate and init context
  54.     .
  55.     MODULE('MELINTBL')                           ! Line table access:
  56.       ME_AdjLines( USHORT, USHORT )              !   Adjust line pointers
  57.       ME_LineIndex( USHORT ),USHORT              !   Find line index
  58.       ME_LineStart( USHORT ),USHORT              !   Find line start
  59.       ME_LineEnd( USHORT ),USHORT                !   Find line end
  60.     .
  61.     MODULE('MEPACK')                             ! Memo packing/unpacking:
  62.       ME_Pack( *STRING[], <BYTE> )               !  Pack memo
  63.       ME_Unpack( *STRING[], USHORT )             !  Unpack memo
  64.     .
  65.     MODULE('MEREFORM')                           ! Reformatting:
  66.       ME_LineBreak( USHORT, USHORT ),USHORT      !   Calculate line break
  67.       ME_ReformDoc()                             !   Reformat document
  68.       ME_ReformPar( USHORT )                     !   Reformat paragraph
  69.     .
  70.     MODULE('MESCRDEF')                           ! Screen defaults:
  71.       ME_ScrnDefs( BYTE, BYTE, BYTE, BYTE )      !   Set screen defaults
  72.     .
  73.     MODULE('MESCREEN')                           ! Screen access:
  74.       ME_SetPage()                               !   Invalidate display page
  75.       ME_ShowPage()                              !   Refresh display
  76.       ME_CurPos()                                !   Position cursor
  77.       ME_CurSize( BYTE )                         !   Set cursor size
  78.     .
  79.     MODULE('MEUTIL')                             ! Miscellanous:
  80.       IsAlerted( SHORT ),BYTE                    !   See if key is ALERTed
  81.       UnAlert( SHORT, SHORT )                    !   UnALERT a key
  82.       ME_Max( LONG, LONG ),LONG                  !   Larger of 2 integers
  83.       ME_Min( LONG, LONG ),LONG                  !   Smaller of 2 integers
  84.       ME_Entry( STRING ),STRING                  !   String input dialog
  85.       ME_Confirm( STRING, <BYTE> ),BYTE          !   Confirmation dialog
  86.     .
  87.     MODULE('MEWORD')                             ! Word movement:
  88.       ME_WordLeft( SHORT  ),SHORT                !   Move to previous word
  89.       ME_WordRight( SHORT ),SHORT                !   Move to next word
  90.     .
  91.  
  92.